.class public Lcom/nemustech/regina/SecretAppSelector;
.super Landroid/app/ListActivity;
.source "SecretAppSelector.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;,
        Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;
    }
.end annotation


# static fields
.field public static final ADDED_COMPONENTNAME_LIST:Ljava/lang/String; = "AddComponentNameList"

.field public static final REMOVED_COMPONENTNAME_LIST:Ljava/lang/String; = "RemoveComponentNameList"


# instance fields
.field private mCheckedArray:[Z

.field private mIsAllSelected:Z

.field private mListAdapter:Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

.field private mPackageManager:Landroid/content/pm/PackageManager;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 29
    invoke-direct {p0}, Landroid/app/ListActivity;-><init>()V

    .line 33
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/nemustech/regina/SecretAppSelector;->mIsAllSelected:Z

    .line 256
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/SecretAppSelector;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-boolean v0, p0, Lcom/nemustech/regina/SecretAppSelector;->mIsAllSelected:Z

    return v0
.end method

.method static synthetic access$002(Lcom/nemustech/regina/SecretAppSelector;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 29
    iput-boolean p1, p0, Lcom/nemustech/regina/SecretAppSelector;->mIsAllSelected:Z

    return p1
.end method

.method static synthetic access$100(Lcom/nemustech/regina/SecretAppSelector;)Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/nemustech/regina/SecretAppSelector;->mListAdapter:Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    return-object v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/SecretAppSelector;)[Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/nemustech/regina/SecretAppSelector;->mCheckedArray:[Z

    return-object v0
.end method

.method static synthetic access$300(Lcom/nemustech/regina/SecretAppSelector;)Landroid/content/pm/PackageManager;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/nemustech/regina/SecretAppSelector;->mPackageManager:Landroid/content/pm/PackageManager;

    return-object v0
.end method

.method private isAllSelected()Z
    .locals 4

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 205
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget-object v1, p0, Lcom/nemustech/regina/SecretAppSelector;->mCheckedArray:[Z

    array-length v1, v1

    if-ge v0, v1, :cond_1

    .line 206
    iget-object v1, p0, Lcom/nemustech/regina/SecretAppSelector;->mCheckedArray:[Z

    aget-boolean v1, v1, v0

    if-eqz v1, :cond_0

    .line 205
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 209
    :cond_0
    iput-boolean v2, p0, Lcom/nemustech/regina/SecretAppSelector;->mIsAllSelected:Z

    move v1, v2

    .line 214
    :goto_1
    return v1

    .line 213
    :cond_1
    iput-boolean v3, p0, Lcom/nemustech/regina/SecretAppSelector;->mIsAllSelected:Z

    move v1, v3

    .line 214
    goto :goto_1
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 32
    .parameter "savedInstanceState"

    .prologue
    .line 43
    invoke-super/range {p0 .. p1}, Landroid/app/ListActivity;->onCreate(Landroid/os/Bundle;)V

    .line 44
    const v6, 0x7f03000f

    move-object/from16 v0, p0

    move v1, v6

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/SecretAppSelector;->setContentView(I)V

    .line 47
    const v6, 0x7f070001

    move-object/from16 v0, p0

    move v1, v6

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/SecretAppSelector;->getString(I)Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x0

    move-object/from16 v0, p0

    move-object v1, v6

    move v2, v7

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/SecretAppSelector;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v29

    .line 48
    .local v29, sharedPref:Landroid/content/SharedPreferences;
    const v6, 0x7f070090

    move-object/from16 v0, p0

    move v1, v6

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/SecretAppSelector;->getString(I)Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x0

    move-object/from16 v0, v29

    move-object v1, v6

    move v2, v7

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v27

    .line 49
    .local v27, secretWorkspaceLength:I
    move/from16 v0, v27

    new-array v0, v0, [I

    move-object/from16 v31, v0

    .line 50
    .local v31, uids:[I
    const/16 v22, 0x0

    .local v22, i:I
    :goto_0
    move/from16 v0, v22

    move/from16 v1, v27

    if-ge v0, v1, :cond_0

    .line 51
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "regina.workspace.uid."

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    move-object v0, v6

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, ".s"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x0

    move-object/from16 v0, v29

    move-object v1, v6

    move v2, v7

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v6

    aput v6, v31, v22

    .line 50
    add-int/lit8 v22, v22, 0x1

    goto :goto_0

    .line 55
    :cond_0
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "uid = "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const/4 v7, 0x0

    aget v7, v31, v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, " or uid = "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const/4 v7, 0x1

    aget v7, v31, v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, " or uid = "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const/4 v7, 0x2

    aget v7, v31, v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 57
    .local v8, selection:Ljava/lang/String;
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, " and itemType = 0"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 59
    const/4 v6, 0x2

    new-array v7, v6, [Ljava/lang/String;

    const/4 v6, 0x0

    const-string v9, "packageName"

    aput-object v9, v7, v6

    const/4 v6, 0x1

    const-string v9, "className"

    aput-object v9, v7, v6

    .line 62
    .local v7, projection:[Ljava/lang/String;
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/SecretAppSelector;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v5

    .line 63
    .local v5, resolver:Landroid/content/ContentResolver;
    sget-object v6, Lcom/nemustech/regina/ReginaSettings$Favorites;->CONTENT_URI:Landroid/net/Uri;

    const/4 v9, 0x0

    const-string v10, "title asc"

    invoke-virtual/range {v5 .. v10}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v20

    .line 65
    .local v20, cursor:Landroid/database/Cursor;
    new-instance v24, Ljava/util/ArrayList;

    invoke-direct/range {v24 .. v24}, Ljava/util/ArrayList;-><init>()V

    .line 66
    .local v24, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;>;"
    const-string v6, "packageName"

    move-object/from16 v0, v20

    move-object v1, v6

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v26

    .line 67
    .local v26, packageNameIndex:I
    const-string v6, "className"

    move-object/from16 v0, v20

    move-object v1, v6

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v17

    .line 69
    .local v17, classNameIndex:I
    new-instance v30, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;

    move-object/from16 v0, v30

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;-><init>(Lcom/nemustech/regina/SecretAppSelector;)V

    .line 71
    .local v30, tempHead:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    move-object/from16 v0, v24

    move-object/from16 v1, v30

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 72
    :cond_1
    :goto_1
    invoke-interface/range {v20 .. v20}, Landroid/database/Cursor;->moveToNext()Z

    move-result v6

    if-eqz v6, :cond_4

    .line 73
    move-object/from16 v0, v20

    move/from16 v1, v26

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v25

    .line 74
    .local v25, packageName:Ljava/lang/String;
    move-object/from16 v0, v20

    move/from16 v1, v17

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v16

    .line 75
    .local v16, className:Ljava/lang/String;
    if-eqz v25, :cond_1

    if-eqz v16, :cond_1

    .line 78
    const/16 v21, 0x0

    .line 79
    .local v21, exists:Z
    const/16 v22, 0x0

    :goto_2
    invoke-virtual/range {v24 .. v24}, Ljava/util/ArrayList;->size()I

    move-result v6

    move/from16 v0, v22

    move v1, v6

    if-ge v0, v1, :cond_2

    .line 80
    move-object/from16 v0, v24

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;

    .line 81
    .local v28, set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    invoke-virtual/range {v28 .. v28}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;->getPackageName()Ljava/lang/String;

    move-result-object v6

    move-object/from16 v0, v25

    move-object v1, v6

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    invoke-virtual/range {v28 .. v28}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;->getClassName()Ljava/lang/String;

    move-result-object v6

    move-object/from16 v0, v16

    move-object v1, v6

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 83
    const/16 v21, 0x1

    .line 87
    .end local v28           #set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    :cond_2
    if-nez v21, :cond_1

    .line 88
    new-instance v28, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    move-object/from16 v2, v25

    move-object/from16 v3, v16

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;-><init>(Lcom/nemustech/regina/SecretAppSelector;Ljava/lang/String;Ljava/lang/String;)V

    .line 89
    .restart local v28       #set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    move-object/from16 v0, v24

    move-object/from16 v1, v28

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 79
    :cond_3
    add-int/lit8 v22, v22, 0x1

    goto :goto_2

    .line 94
    .end local v16           #className:Ljava/lang/String;
    .end local v21           #exists:Z
    .end local v25           #packageName:Ljava/lang/String;
    .end local v28           #set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    :cond_4
    move-object/from16 v0, v24

    move-object/from16 v1, v30

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    .line 97
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/SecretAppSelector;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v5

    .line 98
    sget-object v10, Lcom/nemustech/regina/ReginaSettings$SecretComponentNames;->CONTENT_URI:Landroid/net/Uri;

    const/4 v11, 0x0

    const/4 v12, 0x0

    const/4 v13, 0x0

    const/4 v14, 0x0

    move-object v9, v5

    invoke-virtual/range {v9 .. v14}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v20

    .line 99
    const-string v6, "packageName"

    move-object/from16 v0, v20

    move-object v1, v6

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v26

    .line 100
    const-string v6, "className"

    move-object/from16 v0, v20

    move-object v1, v6

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v17

    .line 101
    new-instance v19, Ljava/util/ArrayList;

    invoke-direct/range {v19 .. v19}, Ljava/util/ArrayList;-><init>()V

    .line 102
    .end local v7           #projection:[Ljava/lang/String;
    .end local v8           #selection:Ljava/lang/String;
    .local v19, componentNameList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/content/ComponentName;>;"
    :goto_3
    invoke-interface/range {v20 .. v20}, Landroid/database/Cursor;->moveToNext()Z

    move-result v6

    if-eqz v6, :cond_5

    .line 103
    new-instance v6, Landroid/content/ComponentName;

    move-object/from16 v0, v20

    move/from16 v1, v26

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    move-object/from16 v0, v20

    move/from16 v1, v17

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v6, v7, v8}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    move-object/from16 v0, v19

    move-object v1, v6

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_3

    .line 108
    :cond_5
    invoke-virtual/range {v24 .. v24}, Ljava/util/ArrayList;->size()I

    move-result v6

    new-array v6, v6, [Z

    move-object v0, v6

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/SecretAppSelector;->mCheckedArray:[Z

    .line 109
    const/16 v22, 0x0

    :goto_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/SecretAppSelector;->mCheckedArray:[Z

    move-object v6, v0

    array-length v6, v6

    move/from16 v0, v22

    move v1, v6

    if-ge v0, v1, :cond_6

    .line 110
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/SecretAppSelector;->mCheckedArray:[Z

    move-object v6, v0

    const/4 v7, 0x0

    aput-boolean v7, v6, v22

    .line 109
    add-int/lit8 v22, v22, 0x1

    goto :goto_4

    .line 114
    :cond_6
    const/16 v22, 0x0

    :goto_5
    invoke-virtual/range {v19 .. v19}, Ljava/util/ArrayList;->size()I

    move-result v6

    move/from16 v0, v22

    move v1, v6

    if-ge v0, v1, :cond_9

    .line 115
    move-object/from16 v0, v19

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v18

    check-cast v18, Landroid/content/ComponentName;

    .line 116
    .local v18, componentName:Landroid/content/ComponentName;
    const/16 v23, 0x0

    .local v23, j:I
    :goto_6
    invoke-virtual/range {v24 .. v24}, Ljava/util/ArrayList;->size()I

    move-result v6

    move/from16 v0, v23

    move v1, v6

    if-ge v0, v1, :cond_7

    .line 117
    move-object/from16 v0, v24

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v28

    check-cast v28, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;

    .line 118
    .restart local v28       #set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    invoke-virtual/range {v28 .. v28}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;->getComponentName()Landroid/content/ComponentName;

    move-result-object v6

    move-object/from16 v0, v18

    move-object v1, v6

    invoke-virtual {v0, v1}, Landroid/content/ComponentName;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_8

    .line 119
    const/4 v6, 0x1

    move-object/from16 v0, v28

    move v1, v6

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;->setHidden(Z)V

    .line 120
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/SecretAppSelector;->mCheckedArray:[Z

    move-object v6, v0

    const/4 v7, 0x1

    aput-boolean v7, v6, v23

    .line 114
    .end local v28           #set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    :cond_7
    add-int/lit8 v22, v22, 0x1

    goto :goto_5

    .line 116
    .restart local v28       #set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    :cond_8
    add-int/lit8 v23, v23, 0x1

    goto :goto_6

    .line 126
    .end local v18           #componentName:Landroid/content/ComponentName;
    .end local v23           #j:I
    .end local v28           #set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    :cond_9
    new-instance v6, Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    const v7, 0x7f03000e

    move-object v0, v6

    move-object/from16 v1, p0

    move-object/from16 v2, p0

    move v3, v7

    move-object/from16 v4, v24

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;-><init>(Lcom/nemustech/regina/SecretAppSelector;Landroid/content/Context;ILjava/util/List;)V

    move-object v0, v6

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/SecretAppSelector;->mListAdapter:Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    .line 127
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/SecretAppSelector;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v6

    move-object v0, v6

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/SecretAppSelector;->mPackageManager:Landroid/content/pm/PackageManager;

    .line 128
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/SecretAppSelector;->mListAdapter:Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    move-object v6, v0

    move-object/from16 v0, p0

    move-object v1, v6

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/SecretAppSelector;->setListAdapter(Landroid/widget/ListAdapter;)V

    .line 130
    const v6, 0x7f09002e

    move-object/from16 v0, p0

    move v1, v6

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/SecretAppSelector;->findViewById(I)Landroid/view/View;

    move-result-object v15

    check-cast v15, Landroid/widget/Button;

    .line 131
    .local v15, button:Landroid/widget/Button;
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/SecretAppSelector;->isAllSelected()Z

    move-result v6

    if-eqz v6, :cond_a

    .line 132
    const-string v6, "Deselect All"

    invoke-virtual {v15, v6}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 136
    :goto_7
    new-instance v6, Lcom/nemustech/regina/SecretAppSelector$1;

    move-object v0, v6

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/SecretAppSelector$1;-><init>(Lcom/nemustech/regina/SecretAppSelector;)V

    invoke-virtual {v15, v6}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 155
    const v6, 0x7f09002f

    move-object/from16 v0, p0

    move v1, v6

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/SecretAppSelector;->findViewById(I)Landroid/view/View;

    move-result-object v6

    new-instance v7, Lcom/nemustech/regina/SecretAppSelector$2;

    move-object v0, v7

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/SecretAppSelector$2;-><init>(Lcom/nemustech/regina/SecretAppSelector;)V

    invoke-virtual {v6, v7}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 185
    const v6, 0x7f090030

    move-object/from16 v0, p0

    move v1, v6

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/SecretAppSelector;->findViewById(I)Landroid/view/View;

    move-result-object v6

    new-instance v7, Lcom/nemustech/regina/SecretAppSelector$3;

    move-object v0, v7

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/SecretAppSelector$3;-><init>(Lcom/nemustech/regina/SecretAppSelector;)V

    invoke-virtual {v6, v7}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 193
    return-void

    .line 134
    :cond_a
    const-string v6, "Select All"

    invoke-virtual {v15, v6}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    goto :goto_7
.end method

.method protected onListItemClick(Landroid/widget/ListView;Landroid/view/View;IJ)V
    .locals 2
    .parameter "l"
    .parameter "v"
    .parameter "position"
    .parameter "id"

    .prologue
    .line 198
    invoke-super/range {p0 .. p5}, Landroid/app/ListActivity;->onListItemClick(Landroid/widget/ListView;Landroid/view/View;IJ)V

    .line 199
    iget-object v1, p0, Lcom/nemustech/regina/SecretAppSelector;->mListAdapter:Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    invoke-virtual {v1, p3}, Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;

    .line 200
    .local v0, set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    invoke-virtual {v0}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;->isHidden()Z

    move-result v1

    if-nez v1, :cond_0

    const/4 v1, 0x1

    :goto_0
    invoke-virtual {v0, v1}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;->setHidden(Z)V

    .line 201
    iget-object v1, p0, Lcom/nemustech/regina/SecretAppSelector;->mListAdapter:Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    invoke-virtual {v1}, Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;->notifyDataSetChanged()V

    .line 202
    return-void

    .line 200
    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method
